@extends('default')
 
@section('title')
  @parent
  资产管理
@stop

@section('content')
<form class="form-horizontal" method="post" action="/saveDetail">
<input  type='hidden' name='_token' value='<?php echo csrf_token()?>'/>
    <fieldset>
        <legend>添加流水</legend>
        <div class="form-group">
            <label for="account" class="col-sm-2 control-label">资产账户:</label>
            <div class="col-sm-10">
                <p class="form-control-static">{{ $returnData['account']->title}}</p>
                <input type="text" class="form-control hidden" id="account" name="account"  value = "{{ $returnData['account']->id }}" >
            </div>
        </div>
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">流水类型</label>
            <div class="col-sm-10">
                <select class="form-control" name= "cat">
                @foreach($returnData['cats'] as $cat)
                    <option value="{{ $cat->id }}">{{ $cat->title}}</option>
                @endforeach
                </select>
            </div>
        </div>
        <div class="form-group">
            <label for="account" class="col-sm-2 control-label">流水金额:</label>
            <div class="col-sm-10">
                <input type="number" class="form-control" id="amount" name="amount"  placeholder="0" >
            </div>
        </div>
        <div class="form-group">
            <label for="remark" class="col-sm-2 control-label">备注</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="remark" name="remark" placeholder="请填写备注">
            </div>
        </div>
        <div class="form-group">
            <label for="account" class="col-sm-2 control-label">操作:</label>
            <div class="col-sm-10">
                <button type="submit" class="btn btn-success">保存</button>
                <button type="rest" class="btn btn-danger">重置</button>
            </div>
        </div>
    </fieldset>
</form>
@stop
